<%-- 
    Document   : alterar
    Created on : 20/01/2012, 02:20:11
    Author     : Carlos Roberto
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
            <link type="text/css" href="css/layout.css" rel="stylesheet" />
            <title>Projeto WS</title>
        </head>
        <body>
            <div id="todo">
                <div id="topo"><h3><h:outputText value="Criar Produto"/></h3></div>
                <div id="corpo">
                    <h:form>
                        <h:panelGrid columns="2">
                            <h:outputText value="Codigo: "/>
                            <h:inputText id="codigo" value="#{produtobean.id}"/>
                            <h:outputText value="Descricao: "/>
                            <h:inputText id="descricao" value="#{produtobean.descricao}"/>
                            <h:outputText value="Estoque: "/>
                            <h:inputText id="estoque" value="#{produtobean.estoque}"/>
                            <h:outputText value="Valor: "/>
                            <h:inputText id="valor" value="#{produtobean.valor}"/>                            
                        </h:panelGrid>
                        <hr/>
                        <h:panelGrid columns="2">
                            <h:commandButton value="Salvar" action="#{produtobean.criarProduto}" style="width:29px height:21px"/>
                            <h:commandButton value="Cancelar" action="#{produtobean.telaInicial}" style="width:29px height:21px"/>
                        </h:panelGrid>
                    </h:form>
                </div>
            </div>
        </body>
    </html>
</f:view>
